import service from "../utils/request";
//加入购物车
export function addCart(payload = {}) {
    return service.post('/cart/add', payload)
}
//查看购物车
export function getCartlist(payload = {}) {
    return service.post('/cart/list', payload)
}
//更新购物车数量
export function doUpdateCartNum(payload = {}) {
    return service.post('/cart/updatenum', payload)
}

//删除一条购物车数据
export function removeOne(payload = {}) {
    return service.post('/cart/remove', payload)
}
//删除所有购物车数据
export function removeAll(payload = {}) {
    return service.post('/cart/removeall', payload)
}
//更改当前选中状态
export function selectOne(payload = {}) {
    return service.post('/cart/selectone', payload)
}
//更改所有选中状态
export function selectAll(payload = {}) {
    return service.post('/cart/selectall', payload)
}